package com.xiaoshuidi.cloud.module.finance.enums.finance;

import lombok.Getter;

public enum FinanceCustomerTypeEnum {
    INDIVIDUAL("个人"), COMPANY("企业"), ROOM("房屋");

    FinanceCustomerTypeEnum(String desc) {
        this.desc = desc;
    }

    @Getter
    private final String desc;


    public static boolean containsValue(String type){
        FinanceCustomerTypeEnum[] values = FinanceCustomerTypeEnum.values();
        for (FinanceCustomerTypeEnum value : values) {
            if(value.name().equals(type)){
                return true;
            }
        }
        return false;
    }
}
